import request from '@/utils/request'



//开通店铺功能模块
export function moduleOpen(data) {
    return request({
      url: '/merchant/v1/function/module/open',
      method: 'post',
      data
    })
}

//查询店铺功能模块
export function merchantModule(id) {
    return request({
        url: `/merchant/v1/function/module/${id}`,
        method: 'get',
    })
}

//查询通用发行商下拉框
export function issuerSelect() {
    return request({
        url: `/common/v1/issuer/select`,
        method: 'get',
    })
}

//开通店铺NFR功能
export function moduleNfrOpen(data) {
    return request({
      url: '/merchant/v1/function/module/open/nfr',
      method: 'post',
      data
    })
}

//修改NFR售卡服务费率
export function moduleNfrEquityFee(data) {
    return request({
      url: '/merchant/v1/nfr/equity/fee',
      method: 'post',
      data
    })
}
//开通店铺观影活动模块
export function moduleFilmOpen(id) {
    return request({
        url: `/merchant/v1/function/module/film/open/${id}`,
        method: 'post',
    })
}
//获取对应店铺结算信息
export function getNfrMsg(merchantId) {
    return request({
        url: `/merchant/v1/getNfrMsg/${merchantId}`,
        method: 'get',
    })
}
//修改对应店铺结算信息
export function updateNfrMsg(data) {
    return request({
      url: '/merchant/v1/updateNfrMsg',
      method: 'put',
      data
    })
}
//开通积分营销功能模块
export function openintegral(data) {
    return request({
        url: `/merchant/v1/im/module/open`,
        method: 'post',
        data
    })
}

//查询积分营销功能模块详情
export function integralDetail(id) {
    return request({
        url: `/merchant/v1/im/module/open/detail/${id}`,
        method: 'get',
    })
}

//查询未绑定的抖音生活服务商商家下拉框
export function dyMerchantList(params) {
    return request({
        url: `/common/v1/douyin/not/live/merchant`,
        method: 'get',
        params
    })
}

//更新积分营销功能模块详情
export function editintegral(data) {
    return request({
        url: `/merchant/v1/im/module/open`,
        method: 'put',
        data
    })
}
